//
//  Building.hpp
//  宿舍管理系统
//
//  Created by 孟强定 on 2020/6/26.
//  Copyright © 2020 mqd. All rights reserved.
//

#ifndef Building_hpp
#define Building_hpp

#include <stdio.h>
#include "Floor.hpp"
/*
 * 表示一栋楼, 分为很多层
 */
class Building{
private:
    Floor* floors;
    int buildingId,num;
public:
    Building(int n=6);
    void init(int buildingId);
    void autoDistribute(int building);
    bool manualDistributeOne(Student* stu, int floorId, int roomId);
    bool autoDistributeOne(Student* stu);
    bool delOne(Student *stu);
    bool find(int floor, int room);
};

#endif /* Building_hpp */


